<?php


use App\Http\Controllers\Api\ActivityController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\Volunteer\UserController;
use \App\Http\Controllers\Api\OrderController;
use \App\Http\Controllers\Api\BannerController;

//添加志愿者
Route::post('add', [UserController::class,'volunteerAdd']);
//社区服务列表
Route::get('service/list', [UserController::class,'serviceList']);
//保存志愿者服务社区
Route::post('service/save', [UserController::class,'serviceSave']);
//首页-志愿者信息
Route::get('info', [UserController::class,'getInfo']);
//首页-服务订单统计
Route::get('order/count', [OrderController::class,'countOrder']);
//首页-轮播图
Route::get('banner/list', [BannerController::class,'getBannerList']);
// 订单列表 -已报名
Route::get('order/list', [UserController::class,'getOrderList']);
// 订单列表 - 可报名
Route::get('order/wait/list', [UserController::class,'getOrderWaitList']);
//首页-服务订单报名
Route::post('order/apply', [UserController::class,'orderApply']);
//首页-服务订单取消报名
Route::post('order/cancel/apply', [UserController::class,'orderCancelApply']);
//首页-服务订单列表(服务中)
Route::get('order/in/service/info', [UserController::class,'getOrderInInfo']);
//首页-服务订单详情
Route::get('order/info', [OrderController::class,'getOrderInfoGoAndBack']);
//首页-安全中心
Route::get('security/center', [UserController::class,'getSecurityOrderList']);
// 活动列表- 已报名
Route::get('activity/list', [UserController::class,'getActivityList']);
// 活动列表- 可报名
Route::get('activity/wait/list', [UserController::class,'getActivityWaitList']);
// 活动列表 详情
Route::get('activity/info', [ActivityController::class, 'getActivity']);
// 活动报名
Route::post('activity/apply', [UserController::class, 'activityApply']);
// 活动报名 取消
Route::post('activity/cancel/apply', [UserController::class, 'activityCancelApply']);
//志愿者异常上报
Route::post('abnormal/add', [UserController::class,'abnormalAdd']);
